package com.ruoyi.loginfo.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 物流信息对象 log_info
 * 
 * @author sl
 * @date 2023-10-15
 */
public class LogInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 订单Id */
    @Excel(name = "订单Id")
    private String orderId;

    /** 物流公司Id */
    @Excel(name = "物流公司Id")
    private Long companyId;

    /** 快递员id */
    @Excel(name = "快递员id")
    private Long personId;

    /** 物流状态（0:已发货,1:运输中,2:已签收） */
    @Excel(name = "物流状态", readConverterExp = "0=:已发货,1:运输中,2:已签收")
    private Integer status;

    /** 预计收货时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "预计收货时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deliveryTime;

    /** 收货地址 */
    @Excel(name = "收货地址")
    private String deliveryAddress;

    /** 发货地址 */
    @Excel(name = "发货地址")
    private String shippingAddress;

    /** 收货经度 */
    @Excel(name = "收货经度")
    private double deliveryLongitude;

    /** 收货纬度 */
    @Excel(name = "收货纬度")
    private double deliveryLatitude;

    /** 发货纬度 */
    @Excel(name = "发货纬度")
    private double shippingLatitude;

    /** 发货经度 */
    @Excel(name = "发货经度")
    private double shippingLongitude;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOrderId(String orderId) 
    {
        this.orderId = orderId;
    }

    public String getOrderId() 
    {
        return orderId;
    }
    public void setCompanyId(Long companyId) 
    {
        this.companyId = companyId;
    }

    public Long getCompanyId() 
    {
        return companyId;
    }
    public void setPersonId(Long personId) 
    {
        this.personId = personId;
    }

    public Long getPersonId() 
    {
        return personId;
    }
    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }
    public void setDeliveryTime(Date deliveryTime) 
    {
        this.deliveryTime = deliveryTime;
    }

    public Date getDeliveryTime() 
    {
        return deliveryTime;
    }
    public void setDeliveryAddress(String deliveryAddress) 
    {
        this.deliveryAddress = deliveryAddress;
    }

    public String getDeliveryAddress() 
    {
        return deliveryAddress;
    }
    public void setShippingAddress(String shippingAddress) 
    {
        this.shippingAddress = shippingAddress;
    }

    public String getShippingAddress() 
    {
        return shippingAddress;
    }
    public void setDeliveryLongitude(double deliveryLongitude)
    {
        this.deliveryLongitude = deliveryLongitude;
    }

    public double getDeliveryLongitude()
    {
        return deliveryLongitude;
    }
    public void setDeliveryLatitude(double deliveryLatitude)
    {
        this.deliveryLatitude = deliveryLatitude;
    }

    public double getDeliveryLatitude()
    {
        return deliveryLatitude;
    }
    public void setShippingLatitude(double shippingLatitude)
    {
        this.shippingLatitude = shippingLatitude;
    }

    public double getShippingLatitude()
    {
        return shippingLatitude;
    }
    public void setShippingLongitude(double shippingLongitude)
    {
        this.shippingLongitude = shippingLongitude;
    }

    public double getShippingLongitude()
    {
        return shippingLongitude;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderId", getOrderId())
            .append("companyId", getCompanyId())
            .append("personId", getPersonId())
            .append("status", getStatus())
            .append("deliveryTime", getDeliveryTime())
            .append("deliveryAddress", getDeliveryAddress())
            .append("shippingAddress", getShippingAddress())
            .append("deliveryLongitude", getDeliveryLongitude())
            .append("deliveryLatitude", getDeliveryLatitude())
            .append("shippingLatitude", getShippingLatitude())
            .append("shippingLongitude", getShippingLongitude())
            .toString();
    }
}
